<template>
      
          <div id="rightlinks" class="rightlinks">
		<span class="rightlinks-notsignedin" id="rightlinks-notsignedin" style="display: inline;">
                	<span class="rightlinks-item">
                        	<span class="button medium jade" @click="modal('signin','0');" >
					免费加入                        	</span>
                	</span>
<!-- <span class="rightlinks-item">
                        	<span class="button medium jade" @click="location.href='/signup';">
					免费加入                        	</span>
                	</span> -->
                        
			<!-- <span @click="location.href='/about';" class="rightlinks-item themed theme-1">
				关于
			</span> -->
                	<!-- <span @click="modal('signin','0');" class="rightlinks-item themed theme-1">
                        	登录
                	</span> -->
		</span>
		<span class="rightlinks-signedin" id="rightlinks-signedin" style="display: none;">
                        <span class="rightlinks-item">
                                <span class="button medium jade" @click="location.href='/curate';">
					Curate	
                                </span>
                        </span>
                        			<span class="rightlink-bubble-outer">
			<span class="rightlink-bubble-outer2">
			<span id="rightbubble-notification" class="rightlink-bubble" @click="notificationsShow();">
				<i class="fas fa-bell"></i>
			</span>
                        <span id="rightbubble-message" class="rightlink-bubble" @click="modal('messenger','');">
				<i class="fas fa-envelope"></i>
                        </span>
			</span>
			</span>
                        <span @click="modal('cc:settings','1');" id="notification_red" class="notification_red" style="display: none;">&nbsp;</span>			<span @click="modal('cc:settings','1');" class="rightlinks-item themed theme-1">
                               	<span id="auth_img_span" class="auth_img_span" style="display: none;"><img src="https://seuppcdn01.1x.com/images/profile/-square.jpg" class="rightlinks-profilepic2" id="auth_img"> </span><span id="auth_name"></span>
                        </span>
		</span>
	</div>
       
</template>
 
 
<script>
 import $ from 'jquery'

 
export default {
  data() {
    return {
      headerColor: "#409EFF",
	  stopscroll:'0',
	  retainmodal : '',
	  modalopen:'0',
      index: "1",
    };
  },
  created() {
          console.log($)
  },
  methods: {
     
  modal(what, stopscroll, where) {

        this.$parent.isshowModel=!this.$parent.isshowModel

        stopscroll = '1';

        if (!where) {
                where = '';
        }

        var whata = what.split(":");

        if (whata[0] == 'addimages' || whata[0] == "createexhibition" && whata[1] == "2" || whata[0] == 'uploader' || whata[0] == 'editphoto' || whata[0] == 'cc' || whata[0] == "search" || whata[0] == "sendmsg" || whata[0] == "overview" || whata[0] == "directory" || whata[0] == "tagger" || whata[0] == "tag" || whata[0] == "messenger" || whata[0] == "visaforumbild" || whata[0] == "purpose" || whata[0] == "guide" || whata[0] == "updated-agreement") {
                $('#modal' + where).addClass("modalbig");
        }

        if (whata[0] == 'headcuration' || whata[0] == 'tagging') {
                if (document.getElementById('lm_active') == null) {
                        $('#all_hiddens').prepend('<input type="hidden" id="lm_active" value="0">');
                }
                $('#modal' + where).addClass("modalbig");
                $('#modal' + where).addClass("modalhuge");
                $('#modalinner').addClass("modal-inner-nopadding");
                $('#modalx').addClass("modalxfloat");
                if (whata[0] == 'headcuration') { urlupdate('/headcuration/' + whata[2] + '/' + whata[1]); }
        }

        if (stopscroll == '1') { this.bodystopscroll(); }
        $('#modal' + where).addClass("zoomIn").removeClass("zoomOut");
        $('#modalback').css("display", "block");
        $('#modal' + where).css("visibility", "visible");
        $('#modal-close').css("visibility", "visible");
        $('#modal-close').css("display", "block");
        $('#modal' + where).css("z-index", "50");
        if (where == '2') { $('#modal' + where).css("z-index", "51"); }

        // if (this.retainmodal == '' || this.retainmodal != what) {
        //         this.retainmodal = '';
        //         $('#modalinner' + where).html('<table class="modal-load" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="modal-load-td"><center><div class="lds-ring"><div></div><div></div><div></div><div></div></div></center></td></tr></table>');

        //         $.ajax({
        //                 type: "GET",
        //                 url: me + "/backend/modal.php?id=" + what + "&deviceType=" + device_Type,
        //                 dataType: "xml",
        //                 success: function (xml) {
        //                         $(xml).find('root').each(function () {
        //                                 var status = $(this).find('status').text();
        //                                 var data = $(this).find('data').text();
        //                                 var adata1 = $(this).find('adata1').text();
        //                                 var adata2 = $(this).find('adata2').text();
        //                                 var extradata = $(this).find('extradata').text();
        //                                 if (status == 'OK') {
        //                                         if (whata[0] == "tag") { data = '<div id="modal_data_inner" style="display: none;">' + data + '</div>'; }
        //                                         modalopen = what;
        //                                         $('#modalinner' + where).html(data);
        //                                         if (what == 'messenger') {
        //                                                 $('#modalinner').addClass("modal-inner-messenger");
        //                                                 $('#rightbubble-message').removeClass("rightbubble-on");
        //                                                 $('#rightbubble-message2').removeClass("rightbubble-on");
        //                                         } else {
        //                                                 $('#modalinner').removeClass("modal-inner-messenger");
        //                                         }
        //                                         $('#modal_data_inner').fadeIn();

        //                                         if (document.getElementById('tagging_undo') != null) {
        //                                                 if (parseInt(tagging_undo_picid) > 0 && tagging_undo_phaseid == whata[2]) {
        //                                                         $('#tagging_undo').css("display", "inline");
        //                                                 }
        //                                         }

        //                                         if (document.getElementById('magazinepicupload') != null) {
        //                                                 $("#magazinepicupload").dropzone({ url: "/backend/magazinepicupload.php", paramName: "file", createImageThumbnails: false, previewTemplate: '', success: function (file, response) { magazinepicdone(file.name, response); }, addedfile: function (file) { }, thumbnail: function (file, dataUrl) { }, uploadprogress: function (file, progress, bytesSent) { nloader('Uploading... ' + progress + '% done'); }, accept: function (file, done) { done(); } });
        //                                         }

        //                                         if (document.getElementById('profilepicupload2') != null) {
        //                                                 $("#profilepicupload2").dropzone({ url: "/backend/profilepicupload.php", paramName: "file", createImageThumbnails: false, previewTemplate: '', success: function (file, response) { profilepicdone2(file.name, response); }, addedfile: function (file) { }, thumbnail: function (file, dataUrl) { }, uploadprogress: function (file, progress, bytesSent) { }, accept: function (file, done) { done(); } });
        //                                         }
        //                                         if (whata[0] == "guide") {
        //                                                 var guidedelay = 0;
        //                                                 var guidedelay_add = 500;
        //                                                 if (document.getElementById('guide_01') != null) {
        //                                                         $('#guide_01').animate({ opacity: "1" }, 1000);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_02') != null) {
        //                                                         setTimeout('$(\'#guide_02\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_03') != null) {
        //                                                         setTimeout('$(\'#guide_03\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_04') != null) {
        //                                                         setTimeout('$(\'#guide_04\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_05') != null) {
        //                                                         setTimeout('$(\'#guide_05\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_06') != null) {
        //                                                         setTimeout('$(\'#guide_06\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_07') != null) {
        //                                                         setTimeout('$(\'#guide_07\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                                 if (document.getElementById('guide_08') != null) {
        //                                                         setTimeout('$(\'#guide_08\').animate({ opacity: "1" }, 1000);', guidedelay);
        //                                                         guidedelay = guidedelay + guidedelay_add;
        //                                                 }
        //                                         }

        //                                         if (whata[0] == "signin") {
        //                                         }
        //                                         if (whata[0] == "search") {
        //                                                 this.retainmodal = 'search';
        //                                         }
        //                                         if (whata[0] == 'uploader') {
        //                                                 var uploaderjs = new qq.FileUploader({
        //                                                         element: document.getElementById('file-uploader'),
        //                                                         action: '/backend/upload.php',
        //                                                         onComplete: function (id, fileName, responseJSON) { if (!responseJSON["success"]) { alert(responseJSON["error"]); modal('uploader', '1'); } },
        //                                                         debug: false
        //                                                 });
        //                                         }
        //                                         if (whata[0] == "overview") {
        //                                                 this.retainmodal = 'overview';
        //                                                 overviewLoad();
        //                                         }
        //                                         if (whata[0] == "editmsg") {
        //                                                 document.getElementById('editforum-text').value = document.getElementById('rawtext_' + whata[1]).innerHTML;
        //                                                 document.getElementById('edit_msg_id').value = whata[1];
        //                                                 document.getElementById('edit_topic_id').value = whata[2];
        //                                                 if (whata[3] == '1') {
        //                                                         document.getElementById('editforum-name-section').style.display = 'block';
        //                                                         document.getElementById('editforum-name').value = document.getElementById('topicname').value;
        //                                                 } else {
        //                                                         document.getElementById('editforum-name-section').style.display = 'none';
        //                                                 }

        //                                         }
        //                                         if (whata[0] == "sendmsg") {
        //                                                 if (document.getElementById('msg_send_to') == null) {
        //                                                         document.getElementById('message_tofind').focus();
        //                                                 }
        //                                                 autosize($('#message-text'));
        //                                         }
        //                                         if (whata[0] == "cc") {
        //                                                 cc = '';
        //                                                 controlcenter(whata[1]);
        //                                                 if (document.getElementById('modal-inner-block2') != null) {
        //                                                         document.getElementById('modal-inner-block2').style.height = $('#modal').innerHeight() - 293 + 'px';
        //                                                 }
        //                                         }

        //                                         if (document.getElementById('uploader-forum') != null) {
        //                                                 $("#uploader-forum").dropzone({ url: "/backend/newforum_uploadforum.php?topic_id=" + document.getElementById('upload_topic_id').value, paramName: "file", createImageThumbnails: false, previewTemplate: '', success: function (file, response) { uploaddoneforum(file.name, response); }, addedfile: function (file) { uploadaddforum(file.name, file.type); }, thumbnail: function (file, dataUrl) { }, uploadprogress: function (file, progress, bytesSent) { uploadprogressforum(file.name, progress, bytesSent); }, accept: function (file, done) { done(); } });
        //                                         }

        //                                         if (document.getElementById('reuploadbutton') != null) {
        //                                                 var reuploadid = document.getElementById('reupload-id').value;
        //                                                 $("#reuploadbutton").dropzone({ url: "/backend/reupload.php?id=" + reuploadid, paramName: "file", createImageThumbnails: false, timeout: 1000000, maxFilesize: 500, previewTemplate: '', success: function (file, response) { reuploaddone(file.name, response); }, addedfile: function (file) { nloader('Your file is uploading... Please wait...'); }, thumbnail: function (file, dataUrl) { }, uploadprogress: function (file, progress, bytesSent) { nloadermsg('Uploaded ' + progress + '%'); }, accept: function (file, done) { done(); } });
        //                                         }

        //                                         if (document.getElementById('replace-button') != null) {
        //                                                 var reuploadid = document.getElementById('reupload-id').value;
        //                                                 //$("#replace-button").dropzone({ url: "/backend/replaceprintfile.php?id="+reuploadid, paramName: "file", createImageThumbnails: false, timeout: 1000000, maxFilesize: 500, previewTemplate: '', success: function(file,response) { replaceprintfiledone(file.name,response); }, addedfile: function(file) { replaceprintfilestarted(); }, thumbnail: function(file, dataUrl) { }, uploadprogress: function(file, progress, bytesSent) { replaceprintfileprogress(file.name,progress); }, accept: function(file, done) { done(); } });
        //                                                 $("#replace-button").dropzone({ timeout: 1000000, maxFilesize: 1000, url: "/backend/replaceprintfile.php?id=" + reuploadid, paramName: "file", createImageThumbnails: false, previewTemplate: '', success: function (file, response) { replaceprintfiledone(file, response); }, addedfile: function (file) { replaceprintfilestarted(file); }, thumbnail: function (file, dataUrl) { }, uploadprogress: function (file, progress, bytesSent) { replaceprintfileprogress(file, progress, bytesSent); }, accept: function (file, done) { done(); } });
        //                                         }

        //                                         if (whata[0] == "editphoto") {
        //                                                 if (document.getElementById('statcircle_1') != null) {
        //                                                         circlePosition('1', '0');
        //                                                         circlePosition('2', '0');
        //                                                         circlePosition('3', '0');
        //                                                         circlePosition('4', '0');
        //                                                         setTimeout('showCircle(\'1\');', 200);
        //                                                         setTimeout('showCircle(\'2\');', 400);
        //                                                         setTimeout('showCircle(\'3\');', 600);
        //                                                         setTimeout('showCircle(\'4\');', 800);
        //                                                         setTimeout('circlePosition(\'1\',document.getElementById(\'stat_1\').value);', 500);
        //                                                         setTimeout('circlePosition(\'2\',document.getElementById(\'stat_2\').value);', 700);
        //                                                         setTimeout('circlePosition(\'3\',document.getElementById(\'stat_3\').value);', 900);
        //                                                         setTimeout('circlePosition(\'4\',document.getElementById(\'stat_4\').value);', 1100);
        //                                                 }
        //                                                 if (document.getElementById('aiscore') != null) {
        //                                                         var opts = {
        //                                                                 colorStart: "#E42256",
        //                                                                 colorStop: void 0,
        //                                                                 gradientType: 0,
        //                                                                 strokeColor: "#ffffff",
        //                                                                 generateGradient: true,
        //                                                                 percentColors: [[0.0, "#E42256"], [0.5, "#FEC84D"], [0.6, "#aec110"], [0.9, "#10c191"]],
        //                                                                 staticZones: [
        //                                                                         { strokeStyle: "#E42256", min: 0, max: 25 },
        //                                                                         { strokeStyle: "#FEC84D", min: 25, max: 50 },
        //                                                                         { strokeStyle: "#aec110", min: 50, max: 75 },
        //                                                                         { strokeStyle: "#10c191", min: 75, max: 100 }
        //                                                                 ]
        //                                                         };
        //                                                         var target = document.getElementById('aiscore');
        //                                                         var gauge = new Gauge(target).setOptions(opts);

        //                                                         gauge.maxValue = 100;
        //                                                         gauge.setMinValue(0);
        //                                                         gauge.set(document.getElementById('aiscore_value').value);

        //                                                 }


        //                                                 if (document.getElementById('chartdiv1') != null) {


        //                                                         am4core.ready(function () {

        //                                                                 am4core.useTheme(am4themes_spiritedaway);
        //                                                                 var chart = am4core.create("chartdiv1", am4charts.PieChart);
        //                                                                 var pieSeries = chart.series.push(new am4charts.PieSeries());
        //                                                                 pieSeries.dataFields.value = "percent";
        //                                                                 pieSeries.dataFields.category = "category";
        //                                                                 chart.innerRadius = am4core.percent(30);
        //                                                                 pieSeries.slices.template.stroke = am4core.color("#fff");
        //                                                                 pieSeries.slices.template.strokeWidth = 2;
        //                                                                 pieSeries.slices.template.strokeOpacity = 1;
        //                                                                 pieSeries.slices.template
        //                                                                         .cursorOverStyle = [
        //                                                                                 {
        //                                                                                         "property": "cursor",
        //                                                                                         "value": "pointer"
        //                                                                                 }
        //                                                                         ];
        //                                                                 pieSeries.alignLabels = false;
        //                                                                 pieSeries.labels.template.bent = true;
        //                                                                 pieSeries.labels.template.radius = 3;
        //                                                                 pieSeries.labels.template.padding(0, 0, 0, 0);
        //                                                                 pieSeries.ticks.template.disabled = true;
        //                                                                 pieSeries.slices.template.tooltipText = "{category} {value}%";
        //                                                                 var shadow = pieSeries.slices.template.filters.push(new am4core.DropShadowFilter);
        //                                                                 shadow.opacity = 0;
        //                                                                 var hoverState = pieSeries.slices.template.states.getKey("hover"); // normally we have to create the hover state, in this case it already exists
        //                                                                 var hoverShadow = hoverState.filters.push(new am4core.DropShadowFilter);
        //                                                                 hoverShadow.opacity = 0.7;
        //                                                                 hoverShadow.blur = 5;
        //                                                                 chart.legend = new am4charts.Legend();
        //                                                                 if (darkmode == 1) {
        //                                                                         pieSeries.legendSettings.labelText = "Series: [bold #fff]{name}[/]";
        //                                                                 }
        //                                                                 chart.data = [{}, {}, {}, {}, {}, {}]
        //                                                                 adata1s = adata1.split(":");
        //                                                                 if (adata1s[0] && parseInt(adata1s[1]) > 0) { chart.data[0]["category"] = adata1s[0]; chart.data[0]["percent"] = adata1s[1]; }
        //                                                                 if (adata1s[2] && parseInt(adata1s[3]) > 0) { chart.data[1]["category"] = adata1s[2]; chart.data[1]["percent"] = adata1s[3]; }
        //                                                                 if (adata1s[4] && parseInt(adata1s[5]) > 0) { chart.data[2]["category"] = adata1s[4]; chart.data[2]["percent"] = adata1s[5]; }
        //                                                                 if (adata1s[6] && parseInt(adata1s[7]) > 0) { chart.data[3]["category"] = adata1s[6]; chart.data[3]["percent"] = adata1s[7]; }
        //                                                                 if (adata1s[8] && parseInt(adata1s[9]) > 0) { chart.data[4]["category"] = adata1s[8]; chart.data[4]["percent"] = adata1s[9]; }
        //                                                                 if (adata1s[10] && parseInt(adata1s[11]) > 0) { chart.data[5]["category"] = adata1s[10]; chart.data[5]["percent"] = adata1s[11]; }
        //                                                                 if (adata1s[12] && parseInt(adata1s[13]) > 0) { chart.data[6]["category"] = adata1s[12]; chart.data[6]["percent"] = adata1s[13]; }


        //                                                                 am4core.useTheme(am4themes_material);
        //                                                                 var chart2 = am4core.create("chartdiv2", am4charts.PieChart);
        //                                                                 var pieSeries2 = chart2.series.push(new am4charts.PieSeries());
        //                                                                 pieSeries2.dataFields.value = "percent";
        //                                                                 pieSeries2.dataFields.category = "category";
        //                                                                 chart2.innerRadius = am4core.percent(30);
        //                                                                 pieSeries2.slices.template.stroke = am4core.color("#fff");
        //                                                                 pieSeries2.slices.template.strokeWidth = 2;
        //                                                                 pieSeries2.slices.template.strokeOpacity = 1;
        //                                                                 pieSeries2.slices.template
        //                                                                         .cursorOverStyle = [
        //                                                                                 {
        //                                                                                         "property": "cursor",
        //                                                                                         "value": "pointer"
        //                                                                                 }
        //                                                                         ];
        //                                                                 pieSeries2.alignLabels = false;
        //                                                                 pieSeries2.labels.template.bent = true;
        //                                                                 pieSeries2.labels.template.radius = 3;
        //                                                                 pieSeries2.labels.template.padding(0, 0, 0, 0);
        //                                                                 pieSeries2.ticks.template.disabled = true;
        //                                                                 pieSeries2.slices.template.tooltipText = "{category} {value}%";
        //                                                                 var shadow2 = pieSeries.slices.template.filters.push(new am4core.DropShadowFilter);
        //                                                                 shadow2.opacity = 0;
        //                                                                 var hoverState2 = pieSeries2.slices.template.states.getKey("hover"); // normally we have to create the hover state, in this case it already exists
        //                                                                 var hoverShadow2 = hoverState2.filters.push(new am4core.DropShadowFilter);
        //                                                                 hoverShadow2.opacity = 0.7;
        //                                                                 hoverShadow2.blur = 5;
        //                                                                 chart2.legend = new am4charts.Legend();
        //                                                                 if (darkmode == 1) {
        //                                                                         pieSeries2.legendSettings.labelText = "Series: [bold #fff]{name}[/]";
        //                                                                 }
        //                                                                 chart2.data = [{}, {}, {}, {}, {}, {}]
        //                                                                 adata2s = adata2.split(":");
        //                                                                 if (adata2s[0] && parseInt(adata2s[1]) > 0) { chart2.data[0]["category"] = adata2s[0]; chart2.data[0]["percent"] = adata2s[1]; }
        //                                                                 if (adata2s[2] && parseInt(adata2s[3]) > 0) { chart2.data[1]["category"] = adata2s[2]; chart2.data[1]["percent"] = adata2s[3]; }
        //                                                                 if (adata2s[4] && parseInt(adata2s[5]) > 0) { chart2.data[2]["category"] = adata2s[4]; chart2.data[2]["percent"] = adata2s[5]; }
        //                                                                 if (adata2s[6] && parseInt(adata2s[7]) > 0) { chart2.data[3]["category"] = adata2s[6]; chart2.data[3]["percent"] = adata1s[7]; }
        //                                                                 if (adata2s[8] && parseInt(adata2s[9]) > 0) { chart2.data[4]["category"] = adata2s[8]; chart2.data[4]["percent"] = adata1s[9]; }
        //                                                                 if (adata2s[10] && parseInt(adata2s[11]) > 0) { chart2.data[5]["category"] = adata2s[10]; chart2.data[5]["percent"] = adata1s[11]; }
        //                                                                 if (adata2s[12] && parseInt(adata2s[13]) > 0) { chart2.data[6]["category"] = adata2s[12]; chart2.data[6]["percent"] = adata1s[13]; }


        //                                                         }); // end am4core.ready()


        //                                                 }
        //                                         }
        //                                 } else {
        //                                         if (status != "DONE") {
        //                                                 alert(status);
        //                                                 closeModal();
        //                                         } else {
        //                                                 if (extradata == '0') {
        //                                                         closeModal();
        //                                                 } else {
        //                                                         if (extradata != '' && extradata != '2' && extradata != '12') {
        //                                                                 if (extradata == '3') {
        //                                                                         centermessage('Changing to Phase 2', 2000);
        //                                                                         modal('tagging:metadata:4:');
        //                                                                 }
        //                                                                 if (extradata == '4') {
        //                                                                         centermessage('Changing to Phase 3', 2000);
        //                                                                         modal('tagging:metadata:12:');
        //                                                                 }
        //                                                                 if (extradata == '7') {
        //                                                                         centermessage('Changing to Phase 5', 2000);
        //                                                                         modal('tagging:keyword:14:');
        //                                                                 }
        //                                                                 if (extradata == '14') {
        //                                                                         centermessage('Changing to Phase 6', 2000);
        //                                                                         modal('tagging:keyword:2:');
        //                                                                 }
        //                                                         } else {
        //                                                                 this.closeModal();
        //                                                         }
        //                                                 }
        //                                         }
        //                                 }
        //                         });
        //                 }
        //         });


        // }

},

overviewopen(id) {
        overviewclose();
        openPhoto(id);
},

 bodyscroll() {
          this.stopscroll = '0';
        $('body').css("overflow", "");
},

 bodystopscroll() {
          this.stopscroll = '1';
        $('body').css("overflow", "hidden");
},

 hideModalLayer() {
        $('#modal').css("z-index", "-50");
},

 hideModalLayer2() {
        $('#modal2').css("z-index", "-50");
},
  closeModal() {
        this.$parent.isshowModel=false
        var close = 1;
        if (document.getElementById('areyousure') != null) {
                var agree = confirm('Are you sure you want to close?');
                if (!agree) { close = 0; }
        }
        if (close == 1) {
                $('#modal').addClass("zoomOut").removeClass("zoomIn");
                $('#modalback').css("display", "none");
                $('#modal').css("visibilty", "hidden");
                $('#modal-close').css("visibility", "hidden");
                $('#modal-close').css("display", "none");
                $('#modal2').addClass("zoomOut").removeClass("zoomIn");
                $('#modal2').css("visibilty", "hidden");
                if (this.stopscroll == '1') { this.bodyscroll(); }
                setTimeout(this.hideModalLayer(), 500);
                setTimeout(this.hideModalLayer2(), 500);
                $('#messages_editor').css("display", "none");
        }
        $('#modal').removeClass("modalbig");
        $('#modal2').removeClass("modalbig");
        $('#modal').removeClass("modalhuge");
        $('#modal2').removeClass("modalhuge");
        $('#modalx').removeClass("modalxfloat");
        $('#modalinner').removeClass("modal-inner-nopadding");
        var modalopena = this.modalopen.split(":");
        if (modalopena[0] == "headcuration") {
                urlupdate('/headcuration/' + modalopena[2]);
        }
        this.modalopen = '';
        $('#modalinner').html('');
},

  closeModal2() {
        var close = 1;
        if (document.getElementById('areyousure') != null) {
                var agree = confirm('Are you sure you want to close?');
                if (!agree) { close = 0; }
        }
        if (close == 1) {
                $('#modal2').addClass("zoomOut").removeClass("zoomIn");
                $('#modal2').css("visibilty", "hidden");
                setTimeout('hideModalLayer2();', 500);
        }
        $('#modal2').removeClass("modalbig");
        $('#modal2').removeClass("modalhuge");
        modalopen = '';
}

   
 },
};
</script>
 